#include "lcd.h"

void LCD::setSize(const std::string& size) {
    this->size = size;
}

void LCD::setModel(const std::string& model) {
    this->model = model;
}

void LCD::print() const {
    std::cout << "液晶屏尺寸: " << size << "英寸" << std::endl;
    std::cout << "液晶屏型号: " << model << std::endl;
}

void LCD::save(std::ofstream& out) const {
    out << "液晶屏尺寸: " << size << "英寸" << std::endl;
    out << "液晶屏型号: " << model << std::endl;
}